import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
          appBar: AppBar(
            title: Text('demo'),
          ),
          body: HomeContent(),
        ),
        theme: ThemeData(primarySwatch: Colors.yellow));
  }
}

class HomeContent extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(
        child: Container(
            width: 300,
            height: 300,
            decoration: BoxDecoration(color: Colors.yellow),
            child: Image.network(
              'https://scpic.chinaz.net/files/pic/pic9/202111/hpic4699.jpg',
              // alignment: Alignment.topLeft,
              fit: BoxFit.cover,
              repeat: ImageRepeat.noRepeat,
              // color: Colors.blue,
              // colorBlendMode: BlendMode.colorDodge,
            )));
  }
}
